<?php
namespace Common\Model;
use Think\Model;
/**
 * Created by PhpStorm.
 * User: zhaojia
 * Date: 15-9-1
 * Time: 下午2:29
 */
class MyInfoModel extends Model{

    protected $tableName="myinfo";

    public function add_data($data){
        $this->add($data);
    }

    public function get_data(){
        $data=$this->find();
        return $data;
    }

    public function save_data($where,$data){
        $this->where($where)->save($data);

    }

}